using System;
using System.Collections.Generic;
using System.Text;

[Serializable]
public class RssConfigItem
{
    private string _catalog;
    public string Catalog
    {
        get { return _catalog; }
        set { _catalog = value; }
    }

    private string _productID;
    public string ProductID
    {
        get { return _productID; }
        set { _productID = value; }
    }

    private string _type;
    public string Type
    {
        get { return _type; }
        set { _type = value; }
    }

    public RssConfigItem()
    {
    }

    public RssConfigItem(string catalog, string productID, string type)
    {
        Catalog = catalog;
        ProductID = productID;
        Type = type;
    }

    public override int GetHashCode()
    {
        return (((Catalog.GetHashCode() * 29) + ProductID.GetHashCode()) * 29) + Type.GetHashCode();
    }

    public override bool Equals(object obj)
    {
        if (obj == null)
            return false;

        RssConfigItem configItem = obj as RssConfigItem;
        if ((System.Object)configItem == null)
            return false;

        return (Catalog.Equals(configItem.Catalog)) && (ProductID.Equals(configItem.ProductID)) &&
            (Type.Equals(configItem.Type));
    }
}

